const express = require('express')
const router = express.Router()
const { getall, search, catDish } = require('../../../controller/dish')

// 商品表相关请求就在这里处理
router.get('/getall', getall)

// 根据关键字获取对应的商品
router.get('/search/:keywords', search)

// 获取某个分类下的所有商品
router.get('/catDish/:catname', catDish)

module.exports = router